//
//  DBmethod.h
//  1.8_数据库封装
//
//  Created by dllo on 16/1/8.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>

@class actModel;

@interface DBmethod : NSObject {
    sqlite3 *DouBanDB;
 
}

@property (nonatomic, assign) NSInteger temp;


+ (DBmethod *) sharedDataBaseMethod;

- (void) openDB;

- (void) createTableWithname:(NSString *) tablename;

- (void) insertDataintotable:(NSString *) tablename :(actModel *) model;

- (void) deleteDatafromtable:(NSString *) tablename :(actModel *) model;

- (void) updateDataintable:(NSString *) tablename :(actModel *)model;

- (NSMutableArray *) selectDatafromtable:(NSString *)tablename;




@end
